package com.xujie.sportsmeeting.vo;

import lombok.Data;
import java.time.LocalDateTime;

/**
 * 运动员视图对象
 */
@Data
public class AthleteVO {
    
    private Long id;
    
    private String studentNumber;
    
    private String realName;
    
    private Integer gender;
    
    private String genderText;
    
    private Integer age;
    
    private String phone;
    
    private String email;
    
    private String department;
    
    private String className;
    
    private Double height;
    
    private Double weight;
    
    private String specialty;
    
    private Integer status;
    
    private String statusText;
    
    private LocalDateTime createTime;
    
    private LocalDateTime updateTime;
    
    public String getGenderText() {
        if (gender == null) return "未知";
        return gender == 0 ? "男" : "女";
    }
    
    public String getStatusText() {
        if (status == null) return "未知";
        return status == 1 ? "正常" : "禁用";
    }
}
